import ysaRequest from '../index'

// 登录
export function LoginRequest(account) {
  return ysaRequest.post({
    url: "/login",
    data: account
  })
}

// 注册
export function registerRequest(account) {
  return ysaRequest.post({
    url: "/register",
    data: account
  })
}

// 重置邮箱
export function mailboxRequest(mailbox) {
  return ysaRequest.post({
    url: "/mailbox",
    data: mailbox
  })
}

// 重置密码
export function resetRequest(mailbox) {
  return ysaRequest.post({
    url: "/reset",
    data: mailbox
  })
}

// 用户信息
export function infoRequest(info) {
  return ysaRequest.post({
    url: "/userInfo",
    data: info
  })
}